import relationalStore from '@ohos.data.relationalStore';

class dict {
  readonly COLOR_WHITE = '#ffffff';
  readonly COLOR_BLACK = '#000000';
  readonly FIVE_MINUTES: number = 5;
  readonly MULTIPLY_TEN: number = 10;
  readonly FORM_ID: string = 'formId';
  readonly COLOR_LIKE_WHITE = '#f7f7f7';
  readonly DANMAKU_TIME: number = 360000;
  readonly TABLE_NAME: string = 'FormData';
  readonly CARD_TABLE_NAME: string = 'CardData';
  readonly INTERVAL_DELAY_TIME: number = 300000;
  readonly DANMAKU_TABLE_NAME: string = 'DanmakuData';
  readonly STORE_CARD_CONFIG: relationalStore.StoreConfig = {
    name: 'CardDatabase.db', securityLevel: relationalStore.SecurityLevel.S1, encrypt: false
  };
  readonly STORE_CONFIG: relationalStore.StoreConfig = {
    name: 'FormDatabase.db', securityLevel: relationalStore.SecurityLevel.S1, encrypt: false
  };
  readonly CREATE_TABLE_FORM: string = 'CREATE TABLE IF NOT EXISTS FormData(id INTEGER PRIMARY KEY AUTOINCREMENT, formId TEXT NOT NULL, formName TEXT NOT NULL, dimension INTEGER)';
  readonly CARD_TABLE_FORM: string = 'CREATE TABLE IF NOT EXISTS CardData(id INTEGER PRIMARY KEY AUTOINCREMENT,cid TEXT NOT NULL, name TEXT NOT NULL,cover TEXT NOT NULL,desc TEXT NOT NULL)';
  readonly DANMAKU_TABLE_FORM: string = 'CREATE TABLE IF NOT EXISTS DanmakuData(id INTEGER PRIMARY KEY AUTOINCREMENT,oid TEXT NOT NULL, type INTEGER, keyword TEXT NOT NULL, time TEXT NOT NULL)';
}
export default new dict();
export const FILTER_KEYWORDS_TYPE = 0;
export const SHARE_ITEM_ANIMATION_DELAY = 100;
export const BUNDLE_NAME ='com.michael.bilibili';
export const DEVICE_DISCOVERY_RANGE: number = 100;
export const SHARE_TRANSITION_ID: string = 'shareId';
export const HOST: string = "http://www.bilibili.com/";
export const TRANSITION_ANIMATION_DURATION: number = 300;
export const APP_USER_AGENT: string = "Bilibili Freedoooooom/MarkII";
export const API_USER_AGENT: string = "Mozilla/5.0 BiliDroid/1.12.0 (bbcallen@gmail.com)";
export const PLAY_USER_AGENT: string = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36";
export const MOBILE_USER_AGENT: string = "Mozilla/5.0 (Linux; Android 8.0; Pixel 2 Build/OPD3.170816.012) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Mobile Safari/537.36";